<script setup>
import { computed } from 'vue';
import { RouterView, useRoute } from 'vue-router'
import Header from '@/components/Header.vue';

const route = useRoute()
const isHeader = computed(()=>{
  return route.name !== "Login" 
    && route.name !== "Register"
    && route.name !== "Detail"
    && route.name !== "AddOrModifyNews"
})
</script>

<template>
  <Header v-if="isHeader"/>
  <RouterView />
</template>

<style scoped>
</style>
